home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / MacTools / C++ / card_12049_render.png < prev    next >
Portable Network Graphic  |  1991-11-29  |  3.3 KB  |  512x342  |  4-bit (3 colors)
   ocr: For eHample, in C++, to declare a class of say students, we would do something like this : class student I 11 - declare both data and runctions here 1; student honors; 11 declares honors to be of type class student Note: In C++, single-line comments begin with "7/" and can be one line in length. The use of "/* " and "*/" can still be used for multiple line comments. Be caretul in that not all C compilers will accept the use of"//". Check your compiler manuals or contact your software distributor for more details. In the above example, the variable honors, is called